#
# A makefile that creates the programs cortest, evaldet, and findpars.
# It was tested on Silicon Graphics' IRIX. Perhaps, there should not
# be problems on other platforms.
#

# COMPOPTS = -mtune=athlon-xp -O2 -funroll-loops
# COMPOPTS = -O3 -msse -msse2 -mmmx -m3dnow
# COMPOPTS = -ffast-math -O3 -msse -msse2 -mmmx -g3 

COMPILER =  g++
COMPOPTS = -O0 -g3
MATHLIB  = -lm

default all: cortest evaldet findpars

cordet.o: cordet.cpp cordet.h
	$(COMPILER) cordet.cpp $(COMPOPTS) -c

utils.o:  utils.cpp utils.h
	$(COMPILER) utils.cpp $(COMPOPTS) -c

cortest:  cortest.cpp cordet.o utils.o
	$(COMPILER) cortest.cpp cordet.o utils.o $(COMPOPTS) $(MATHLIB) -o cortest
   
clean:
	rm -rf *.o cortest

